package com.yys.gulimall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yys.common.utils.PageUtils;
import com.yys.gulimall.order.entity.OrderEntity;
import com.yys.gulimall.order.vo.*;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author zqcc
 * @email zhang32194878@163.com
 * @date 2021-02-21 02:43:14
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder() throws ExecutionException, InterruptedException;

    OrderSubmitRespVo submitOrder(OrderSubmitVo orderSubmitVo);

    OrderEntity getOrderByOrderSn(String orderSn);

    void closeOrder(OrderEntity orderEntity);

    PayVo getorderPay(String orderSn);

    PageUtils queryPageWithItem(Map<String, Object> params);

    String handlePayResult(PayAsyncVo payAsyncVo);
}

